package com.zfzs.post.common.security;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author ck
 * @date 2018-11-30
 */
@Getter
@Setter
public class AuthorizationUser {

    @NotBlank (message = "请输入手机号码")
    private String phone;

    @NotBlank (message = "请输入密码")
    private String password;

    @NotNull (message = "渠道ID必填")
    private Long channelId;

    @Override
    public String toString() {
        return "{phone=" + phone  + ", password= ******}";
    }
}
